/*
 * @Author: sbotlp
 * @Email: sbotlp@sina.com
 * @Date: 2019-06-27 17:17:30
 * @LastEditTime: 2019-06-30 10:29:04
 * @Description: http://www.sbotlp.com.cn
 */
export class ValidateMethod {
  // 扩展_.isEmpty(), Number类型应该返回false
  isEmpty(value: any) {
    if (typeof value === 'undefined' || value === 'null' || value === null || (typeof value === 'string' && value === '')) {
      return true;
    }
    return false;
  };
}